package edu.zut.cs.network.exercise.socket;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
	
	public static void main(String[] args) throws IOException {
	ServerSocket server = new ServerSocket(1111);
	Socket client = server.accept();
	BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
	while(true) {
		String str = in.readLine();
		System.out.println(str);
		
	}
}
}
